﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QuanLyHoTich.App_Code.Process;

namespace QuanLyHoSo.Screens
{
    public partial class frmTinh : Form
    {
        TinhProcess p = new TinhProcess();
        public frmTinh()
        {
            InitializeComponent();
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void frmTinh_Load(object sender, EventArgs e)
        {
            //dtgvTinh.DataSource = p.DanhSachTinh();
            DataTable dtbTinh = p.DanhSachTinh();
            BindingSource bs = new BindingSource();
            bs.DataSource = dtbTinh;
            dtgvTinh.DataSource = bs;
            bindingNavigatorTinh.BindingSource = bs;

        }

        private void btnLuu_Click(object sender, EventArgs e)
        {

        }

        private void bindingNavigatorMoveNextItem_Click(object sender, EventArgs e)
        {
         //   bindingSourceTinh.MoveNext();
            this.dtgvTinh.Refresh();
        }

        private void bindingNavigatorMovePreviousItem_Click(object sender, EventArgs e)
        {
            //bindingSourceTinh.MoveLast();
        }
    }
}
